home *** CD-ROM | disk | FTP | other *** search
- desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY1)
-
- desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
- desc.EffectClassType = ENECT_PARTICLESYSTEM
-
- desc.ScriptSet = ENSCRIPTSET_UNKNOWN
- desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
- desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
- desc.isAnimateTexture = false
- desc.RenderType = ENRENDERTYPE_GEOMETRY
-
- Emitter = desc.PS.PSDescription
- Emitter.ParticleTypesNumber = 1
- Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
- Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
- Emitter.EmitterLifeTime = 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PT = Emitter.ParticleTypesParams[1]
- PT.IsEmitterLocked = false
- PT.DrawOrder = 1
- PT.Material = ENMAT_PARTICLE_LIGHT
-
-
- PT.TextureName = "environment_effect_explosion_smoke1.dds"
-
- PT.ParticlesPerSecond = 160.0;
- PT.InitialNumberOfParticles = 0.0;
- PT.BaseLifeTime = 0.5;
- PT.BaseLifeTimeVariance = 0.2;
- PT.BaseSpeed = 15.0;
- PT.BaseSpeedVariance = 0.4;
-
- PT.TangentSpeed = 0.0;
- PT.TangentSpeedVariance = 0.0;
- PT.TangentDirection = D3DXVECTOR3:new(1.0,0.0,0.0);
- PT.TangentAngleMin = 0.0;
- PT.TangentAngleMax = 6.28;
- PT.IsTangentDependOnBase = false;
-
- PT.BaseAngle = 3.0;
- PT.BaseAngleVariance = 5.0;
- PT.BaseAngleSpeed = 0.2;
- PT.BaseAngleSpeedVariance = 0.3;
- PT.BaseAngleSpeedDirection = 0;
- PT.BaseDirection = D3DXVECTOR3:new(0.0,-1.0,0.0);
- PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
- PT.BasePosition = D3DXVECTOR3:new(0,1,0);
- PT.BasePositionVariance = D3DXVECTOR3:new(1,1,1);
- PT.BaseSize = 5.0;
- PT.BaseSizeVariance = 0.1;
-
- -- color over time
- PT.ColorOverTimeR[1].TimePercent = 0.0;
- PT.ColorOverTimeR[1].Value = 1.0;
- PT.ColorOverTimeG[1].TimePercent = 0.0;
- PT.ColorOverTimeG[1].Value = 0.2;
- PT.ColorOverTimeB[1].TimePercent = 0.0;
- PT.ColorOverTimeB[1].Value = 0.0;
-
- PT.ColorOverTimeR[2].TimePercent = 1.0;
- PT.ColorOverTimeR[2].Value = 0.5;
- PT.ColorOverTimeG[2].TimePercent = 1.0;
- PT.ColorOverTimeG[2].Value = 0.5;
- PT.ColorOverTimeB[2].TimePercent = 1.0;
- PT.ColorOverTimeB[2].Value = 0.5;
-
- -- transparency over time
- PT.TransparencyOverTime[1].TimePercent = 0.0;
- PT.TransparencyOverTime[1].Value = 0.1;
-
- PT.TransparencyOverTime[2].TimePercent = 1.0;
- PT.TransparencyOverTime[2].Value = 0.0;
-
- -- size over time
- PT.SizeOverTime[1].TimePercent = 0.0;
- PT.SizeOverTime[1].Value = 6.0;
-
- PT.SizeOverTime[2].TimePercent = 1.0;
- PT.SizeOverTime[2].Value = 3.0;
-
- -- Speed over time
- PT.SpeedOverTime[1].TimePercent = 0.0;
- PT.SpeedOverTime[1].Value = 10.0;
-
- PT.SpeedOverTime[2].TimePercent = 1.0;
- PT.SpeedOverTime[2].Value = 0.0;
-
- -- Tangent Speed over time
- PT.TangentSpeedOverTime[1].TimePercent = 0.0;
- PT.TangentSpeedOverTime[1].Value = 0.0;
-
- PT.TangentSpeedOverTime[2].TimePercent = 1.0;
- PT.TangentSpeedOverTime[2].Value = 0.0;
-
-
- -- GravityAcceleration over time
- PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
- PT.GravityAccelerationOverTime[1].Value = 0.0;
-
- PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
- PT.GravityAccelerationOverTime[2].Value = 0.0;
-
- -- AngleSpeed over time
- PT.AngleSpeedOverTime[1].TimePercent = 0.0;
- PT.AngleSpeedOverTime[1].Value = 1.5;
-
- PT.AngleSpeedOverTime[2].TimePercent = 1.0;
- PT.AngleSpeedOverTime[2].Value = 0.6;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- --
- -- end particle system description
- --
-